package DesignMode.SingletonPattern;

public class Singleton4 {
    private static Singleton4 uniqueInstance;

    private Singleton4() {
    }

    public static synchronized Singleton4 getUniqueInstance() {
        if (uniqueInstance == null) {
            uniqueInstance = new Singleton4();
        }
        return uniqueInstance;
    }
}
